package com.bbzn.device.client.service;

import java.util.List;

import com.bbzn.device.client.vo.req.AuditVO;
import com.bbzn.device.client.dataobject.LeaveForm;
import com.bbzn.device.client.dto.audit.LeaveFormDTO;
import com.bbzn.device.client.utils.PageInfo;

public interface LeaveFormService{


    int deleteByPrimaryKey(Long formId);

    int insert(LeaveForm record);

    int insertOrUpdate(LeaveForm record);

    int insertOrUpdateSelective(LeaveForm record);

    int insertSelective(LeaveForm record);

    LeaveForm selectByPrimaryKey(Long formId);

    int updateByPrimaryKeySelective(LeaveForm record);

    int updateByPrimaryKey(LeaveForm record);

    List<LeaveForm> findByAll(LeaveForm leaveForm);

    int updateBatch(List<LeaveForm> list);

    int updateBatchSelective(List<LeaveForm> list);

    int batchInsert(List<LeaveForm> list);

    PageInfo<LeaveForm> selectPageBySelective(LeaveFormDTO record);

    int selectCountBySelective(LeaveFormDTO record);

    void createLeaveFrom(AuditVO record,Long userId,String language) throws Exception;

    void auditLeaveFrom(AuditVO record,Long userId,String language) throws Exception;
}
